import {
    request
} from "./request";
import qs from "qs";


// 获取抽奖首页
export function listDrawMain(obj) {
    return request({
        url: "stored/listDrawMain",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取抽奖记录
export function getActivityUserList(obj) {
    return request({
        url: "lottery/getActivityUserList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  3650  完成每日任务
export function addActDetail(obj) {
    return request({
        url: "stored/addActDetail",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 上传截图
export function addActivitySharingRecord(obj) {
    return request({
        url: "lottery/addActivityLottery",
        method: "post",
        data: obj,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });
}
// 获取海报 客服
export function listShare(obj) {
    return request({
        url: "Share/listShare",
        method: "post",
        data: qs.stringify(obj)
    });
}
// ==========




// 获取相关规则
export function getRuleList(obj) {
    return request({
        url: "Rule/getRuleList",
        method: "post",
        data: qs.stringify(obj)
    });
}


// 获取储值金  奖金
export function listStored(obj) {
    return request({
        url: "stored/listStored",
        method: "post",
        data: qs.stringify(obj)
    });
}


// 上边为新接口




// 生成专属海报
export function listUserImg(obj) {
    return request({
        url: "stored/listUserImg",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取海报
export function getActivitySharing(obj) {
    return request({
        url: "fenxiao/getActivitySharing",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 领取奖励
export function addRecord(obj) {
    return request({
        url: "fenxiao/addRecord",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取历史记录
export function getUserRecord(obj) {
    return request({
        url: "fenxiao/getUserRecord",
        method: "post",
        data: qs.stringify(obj)
    });
}